import request from '../../request/request_axios.js'


/**
 * Login API Email + 验证码
 * @param data
 * @returns {*}
 */
export const loginEmailAPI = (data) => {
  return request({
    url: '/userProfiles/login/email',
    method: 'post',
    data:data
  });
};

/**
 * Login API 手机号 + 验证码
 * @param data
 * @returns {*}
 */
export const loginPhoneAPI = (data) => {
  return request({
    url: '/userProfiles/login/phone',
    method: 'post',
    data:data
  });
};


/**
 * Login API 账户 + 密码 + 图片验证码
 * @param data
 * @returns {*}
 */
export const loginAccountAPI = (data) => {
  return request({
    url: '/userProfiles/login/password',
    method: 'post',
    data:data
  });
};

/**
 * 获取微信登录二维码
 * @returns {*}
 */
export const getWxCodeAPI = () => {
  return request({
    url: '/wx/portal/public/getTicketUrl',
    method: 'get',
  })
}

/**
 * 邮箱认证
 */
export const emailAuthAPI = (data) => {
  return request({
    url: '/userProfiles/email/auth',
    method: 'post',
    data:data
  });
}




